import os
import logging.config
from .config import Config

logging_config_path = os.path.join(Config.APP_PATH,'config', 'logging.conf')

logging_log_path = os.path.join(Config.APP_PATH, 'logs')
if not os.path.exists(logging_log_path):
    os.makedirs(logging_log_path)

logging.config.fileConfig(logging_config_path)

logging =logging.getLogger()
